<?php
class Cutpoint{
	public function cutPoint($m){
		$point = substr($m,strrpos($m,'.')+1);
				$j=0;
				for($i=0;$i<strlen($point);$i++){
					if($point{$i}==0){
						$j++;
					} 
				}
				if($i == $j){
					$m = substr($m,0,strrpos($m,'.'));
				}
				return $m;
	}
}